#define _CRT_SECURE_NO_WARNINGS 1

#include <stdio.h>

double aver_salary(double* salary)
{
	int i = 0;
	int sum = 0;
	for (i = 0; i < 10; i++)
	{
		sum += salary[i];
	}
	return sum / 10;
}

int main()
{
	double salary[10] = { 1000,2000,2000,3300,1300,1200,2000,2300,3000,4000 };
	double aver_sal = aver_salary(salary);
	printf("%lf\n", aver_sal);
	return 0;
}